package cn.fanqinghong.ymcc.feignClient;

import cn.fanqinghong.ymcc.domain.Login;
import cn.fanqinghong.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * FAN
 * 2022/7/17  15:35
 */
@FeignClient(value = "service-uaa",fallbackFactory = LoginFallbackFactory.class)
@RequestMapping("/login")
public interface LoginFeignClient {

    /**
     * 保存登录信息
     * @param login
     * @return
     */
    @RequestMapping(value="/save",method= RequestMethod.POST)
    JSONResult save(@RequestBody Login login);
}
